package com.sqx.modules.fiction.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sqx.common.utils.Result;
import com.sqx.modules.fiction.entity.NFictionChapter;
import com.sqx.modules.fiction.entity.dto.AddChapterDto;

public interface FictionChapterService extends IService<NFictionChapter> {
    Result addChapter(AddChapterDto addChapterDto);

    Result updateChapter(NFictionChapter fictionChapter);

    Result deleteChapter(Long id);

    Result getChapterById(Long id);

    Result getChapterByFictionId(Long fictionId,Integer page,Integer limit);

    Result getChapterList(Long fictionId,Integer page,Integer limit);

    Result deleteChapterById(Long fictionChapterId);
}
